<!--
 * @Description: 生产计划-生产计划
 * @Autor: 曹敬涛
 * @Date: 2021-08-16 15:45:18
 * @LastEditors: 商晓彬
 * @LastEditTime: 2022-02-16 11:10:14
-->
<div>
    <div class="m-subheader">
        <div class="row align-items-center">
            <div class="mr-auto col-auto">
                <h3 class="m-subheader__title m-subheader__title--separator">
                    <span>火箭生产计划</span>
                </h3>
            </div>
        </div>
    </div>
    <div class="ex-management">

        <div class="ui-g" style="height: 100%;">
            <div class="ui-g-4" style="border-right: 10px solid #eee;height: 780px;overflow: auto;">
                <!-- 查询框 -->
                <div class="query-box">
                    <span class="ui-float-label quality-dept">
                        <span class="text">型号</span>
                        <p-dropdown name="model" #modelSelect="ngModel" [options]="modelList"
                            [(ngModel)]="queryInfo.model" dataKey="value" [filter]="true" filterBy="label"
                            [optionLabel]="'label'" placeholder="请选择" (onChange)="getLotNoList($event.value)">
                        </p-dropdown>
                    </span>
                    <span class="ui-float-label quality-dept">
                        <span class="text">发次</span>
                        <p-dropdown name="lotNo" #lotNoSelect="ngModel" [options]="lotNoList"
                            [(ngModel)]="queryInfo.lotNo" dataKey="value" [optionLabel]="'label'" placeholder="请选择">
                        </p-dropdown>

                    </span>

                    <p-button class="add-btn" (click)="getDesigenTree()" label="查询"></p-button>

                </div>
                <div>

                    <p-tree [value]="files2" selectionMode="single" [(selection)]="selectedFiles1"
                        (onNodeSelect)="nodeSelect($event)" [style]="{ height: '90%' }">
                        <ng-template let-node pTemplate="default">
                            <img class="imgcontent" src="../../../assets/common/images/三级图标.png"
                                *ngIf="node.nodeLevel==8||node.nodeLevel==9" width="20" height="20" />
                            <img class="imgcontent" src="../../../assets/common/images/0.png"
                                *ngIf="node.nodeLevel=='undefind'" width="20" height="20" />
                            <img class="imgcontent" src="../../../assets/common/images/1.png" *ngIf="node.nodeLevel==0"
                                width="20" height="20" />
                            <img class="imgcontent" src="../../../assets/common/images/2.png" *ngIf="node.nodeLevel==1"
                                width="20" height="20" />
                            <img class="imgcontent" src="../../../assets/common/images/3.png" *ngIf="node.nodeLevel==2"
                                width="20" height="20" />
                            <img class="imgcontent" src="../../../assets/common/images/4.png" *ngIf="node.nodeLevel==3"
                                width="20" height="20" />
                            <img class="imgcontent" src="../../../assets/common/images/5.png" *ngIf="node.nodeLevel==4"
                                width="20" height="20" />
                            <!-- [class]="(node.nodeLevel!=8&&node.nodeLevel!=9)?'pi pi-folder':node.nodeLevel==8?'pi pi-list':'pi pi-file'" -->
                            <span
                                *ngIf="node.key==-1">{{node.model}}-{{node.lotNo}}-{{node.nodeDrawingNo}}-{{node.nodeName}}-{{node.stageSign}}</span>
                            <span *ngIf="node.key!=-1">{{node.nodeDrawingNo}}-{{node.nodeName}}</span>
                            <span class="ptagisRelation"
                                *ngIf="node.isRelation==1&&node.isExport!=1">{{node.isRelation==1?'已关联':''}}</span>
                            <span class="ptagisExport" *ngIf="node.isExport==1">{{node.isExport==1?'已导出':''}}</span>
                        </ng-template>

                    </p-tree>
                </div>

            </div>
            <div class="ui-g-8" style="height: 780px;overflow: auto;">
                <div>
                    <p-button *ngIf="selectedFiles1 && ('Pages.RocketPlan.DefaultPlan' | permission)" (click)="defaultEv()" label="默认排配计划"></p-button>
                    <p-button *ngIf="selectedFiles1 && ('Pages.RocketPlan.ManualPlan' | permission)" class="add-btn" (click)="handelEv()" label="手动排配计划">
                    </p-button>
                    <p-button *ngIf="selectedFiles1 && (selectedFiles1.nodeLevel===8 ||selectedFiles1.isRelation==1) && ('Pages.RocketPlan.IssueTask' | permission)"
                        class="add-btn" (click)="taskIssue()" label="下发任务">
                    </p-button>

                </div>
                <div class="content-text">芯级任务计划</div>
                <!-- 列表 -->
                <div>
                    <div class="m-portlet m-portlet--mobile">
                        <div class="primeng-datatable-container" style="margin-top: 10px;width : 100%;">
                            <p-table #dataTable [value]="primengTableHelper.records" *ngIf="selectedFiles1"
                                rows="{{primengTableHelper.defaultRecordsCountPerPage}}" [paginator]="false"
                                [lazy]="true" [scrollable]="true" [responsive]="primengTableHelper.isResponsive"
                                [(selection)]="selectRow" [resizableColumns]="primengTableHelper.resizableColumns">
                                <ng-template pTemplate="header">
                                    <tr>
                                        <th style="width: 80px;position:sticky;left:0;z-index:1;">
                                            <p-tableHeaderCheckbox></p-tableHeaderCheckbox>
                                        </th>
                                        <th style="width: 120px;position:sticky;left:80px;z-index:1;">操作</th>
                                        <th style="width: 80px;position:sticky;left:200px;z-index:1;">序号</th>
                                        <th style="width: 110px;position:sticky;left:280px;z-index:1;">型号</th>
                                        <th style="width: 110px;position:sticky;left:390px;z-index:1;">发次</th>
                                        <!-- 父级显示字段 -->
                                        <th *ngIf="selectedFiles1.nodeLevel ==0" style="width: 110px">芯级图号</th>
                                        <th *ngIf="selectedFiles1.nodeLevel ==0" style="width: 110px">芯级名称</th>
                                        <!-- 其他级显示字段 -->
                                        <th *ngIf="selectedFiles1.nodeLevel !==0 &&selectedFiles1.nodeLevel !==8 &&selectedFiles1.nodeLevel !==9 &&selectedFiles1.isRelation==0 && selectedFiles1.nodeLevel != 2"
                                            style="width: 110px">部套图号</th>
                                        <th *ngIf="selectedFiles1.nodeLevel !==0  &&selectedFiles1.nodeLevel !==8 &&selectedFiles1.nodeLevel !==9  &&selectedFiles1.isRelation==0 && selectedFiles1.nodeLevel != 2"
                                            style="width: 110px">部套名称</th>
                                        <!-- 工作项目级显示字段 -->
                                        <th *ngIf="selectedFiles1.nodeLevel ==2 &&selectedFiles1.isRelation==0"
                                            style="width: 110px">工作项目级图号
                                        </th>
                                        <th *ngIf="selectedFiles1.nodeLevel ==2 &&selectedFiles1.isRelation==0"
                                            style="width: 110px">工作项目级名称
                                        </th>
                                        <!-- 工序显示字段 -->
                                        <th *ngIf="selectedFiles1.nodeLevel !==0 &&selectedFiles1.nodeLevel !==8&&selectedFiles1.nodeLevel !==9 &&selectedFiles1.isRelation==1"
                                            style="width: 110px">工序图号</th>
                                        <th *ngIf="selectedFiles1.nodeLevel !==0  &&selectedFiles1.nodeLevel !==8&&selectedFiles1.nodeLevel !==9 &&selectedFiles1.isRelation==1"
                                            style="width: 110px">工序名称</th>
                                        <!-- 工步显示字段 -->
                                        <th *ngIf="selectedFiles1.nodeLevel ==8" style="width: 110px">工步图号</th>
                                        <th *ngIf="selectedFiles1.nodeLevel ==8" style="width: 110px">工步名称</th>
                                        <th style="width: 110px">标准工时</th>
                                        <th style="width: 110px">配套情况</th>
                                        <th style="width: 110px">计划开始日期</th>
                                        <th style="width: 110px">计划完成日期</th>
                                        <th style="width: 110px">状态</th>
                                        <th style="width: 110px">调度员</th>
                                        <th style="width: 110px">排配时间</th>
                                        <th style="width: 110px">备注</th>
                                    </tr>
                                </ng-template>
                                <ng-template pTemplate="body" let-rowIndex="rowIndex" let-car>
                                    <tr [ngClass]="car.color">
                                        <td style="width: 80px;position:sticky;left:0;z-index:1;">
                                            <p-tableCheckbox [value]="car"></p-tableCheckbox>
                                        </td>
                                        <td style="width: 120px;position:sticky;left:80px;z-index:1;">
                                            <div class="btn-group dropdown" dropdown container="body">
                                                <button dropdownToggle class="dropdown-toggle btn btn-sm btn-primary">
                                                    <i class="fa fa-cog"></i><span class="caret"></span> 操作
                                                </button>
                                                <ul class="dropdown-menu" *dropdownMenu>
                                                    <li>
                                                        <a *ngIf="'Pages.RocketPlan.Resume' | permission" href="javascript:;" (click)="llVisibleEv(car.id)">履历</a>
                                                    </li>
                                                    <li>
                                                        <a *ngIf="'Pages.RocketPlan.Modify' | permission" href="javascript:;" style="margin-left: 5px;"
                                                            (click)="updateEv(car)">修改</a>
                                                    </li>
                                                </ul>
                                            </div>
                                        </td>
                                        <td style="width: 80px;position:sticky;left:200px;z-index:1;">{{rowIndex+1}}</td>
                                        <td style="width: 110px;position:sticky;left:280px;z-index:1;">{{car.model}}</td>
                                        <td style="width: 110px;position:sticky;left:390px;z-index:1;">{{car.lotNo}}</td>
                                        <td style="width: 110px">{{car.drawingNo}}</td>
                                        <td *ngIf="selectedFiles1.nodeLevel !=8" style="width: 110px">
                                            {{car.productionName}}</td>
                                        <td *ngIf="selectedFiles1.nodeLevel ==8" style="width: 110px">
                                            {{car.workStepDrawingNo}}</td>
                                        <td style="width: 110px">{{car.workingHour}}</td>
                                        <td style="width: 110px">
                                            <!-- car.matchingCondition -->
                                            <div *ngIf="car.matchingCondition == '缺料'" class="cursor"
                                                (click)="getMaterial(car)">{{car.matchingCondition}}</div>
                                            <div *ngIf="car.matchingCondition != '缺料'">{{car.matchingCondition}}</div>
                                        </td>
                                        <td style="width: 110px">{{car.startTime |date:'yyyy-MM-dd'}}</td>
                                        <td style="width: 110px">{{car.endTime |date:'yyyy-MM-dd'}}</td>
                                        <td style="width: 110px">{{car.productingStatusDesc}}</td>
                                        <td style="width: 110px">{{car.dispatcherName}}</td>
                                        <td style="width: 110px">{{car.arrangementTime |date:'yyyy-MM-dd'}}</td>
                                        <td style="width: 110px">{{car.remark}}</td>

                                    </tr>
                                </ng-template>
                            </p-table>
                            <div class="primeng-paging-container">
                                <p-paginator [rows]="primengTableHelper.defaultRecordsCountPerPage" #paginator
                                    [totalRecords]="primengTableHelper.totalRecordsCount"
                                    (onPageChange)="getNodePlanDetails($event)"
                                    [rowsPerPageOptions]="primengTableHelper.predefinedRecordsCountPerPage">
                                </p-paginator>
                                <span class="total-records-count">
                                    {{'TotalRecordsCount' | localize:primengTableHelper.totalRecordsCount}}
                                </span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="content-text">芯级路线</div>
                <div style="height: 225px;">

                    <!-- <p-organizationChart [value]="data2"></p-organizationChart> -->
                    <div id="myDiagramDiv" style="width:100%;height:100%;"></div>
                </div>

            </div>
        </div>
        <!--  修改  弹窗 -->
        <p-dialog [style]="{width: '80%', height: '60%',background:'#fff'}" [(header)]="dialogType"
            [(visible)]="addVisible" (onHide)="displayclose()" modal="modal" [responsive]="true">
            <form #addForm="ngForm" (ngSubmit)="upatePlanEv()" novalidate class="add-form" autocomplete="off">
                <div class="ui-g form-info" *ngIf="selectedFiles1">
                    <div class="p-field ml ui-g-6">
                        <span class="input-lable" style="margin-right: 5px;">计划开始日期：</span>
                        <p-calendar name="startTime" #startTimeSelect="ngModel" [(ngModel)]="addInfoUi.startTime">
                        </p-calendar>
                        <validation-messages [formCtrl]="startTimeSelect"></validation-messages>

                    </div>
                    <div class="p-field ml ui-g-6">
                        <span class="input-lable" style="margin-right: 5px;">*计划完成日期：</span>
                        <p-calendar name="endTime" #endTimeSelect="ngModel" [(ngModel)]="addInfoUi.endTime">
                        </p-calendar>
                        <validation-messages [formCtrl]="endTimeSelect"></validation-messages>
                    </div>
                    <div class="p-field ml ui-g-12">
                        <span style="margin-right: 5px;">*是否同步更新后续路线计划：</span>

                        <p-radioButton name="group1" value="1" label="是" [(ngModel)]="addInfoUi.renovateFlag"
                            inputId="opt1">
                        </p-radioButton>
                        <p-radioButton name="group1" value="0" label="否" [(ngModel)]="addInfoUi.renovateFlag"
                            inputId="opt2">
                        </p-radioButton>
                    </div>
                    <div class="p-field ml ui-g-6" *ngIf="banZuFlag">
                        <span class="input-lable" style="margin-right: 5px;">*装配班组：</span>
                        <p-multiSelect [options]="getOrganizationUnitList" name="organizationUnitIdS"
                            #organizationUnitIdSSelect="ngModel" [(ngModel)]="addInfoUi.organizationUnitId"
                            defaultLabel="请选择" required optionLabel="displayName" dataKey="id"></p-multiSelect>
                        <validation-messages [formCtrl]="organizationUnitIdSSelect"></validation-messages>
                    </div>
                    <div class="p-field ml ui-g-6" *ngIf="selectedFiles1.nodeLevel===8 ||selectedFiles1.isRelation==1">
                        <span class="input-lable" style="margin-right: 5px;">*装配班组：</span>
                        <!-- <p-calendar name="startTime" #startTimeSelect="ngModel" [(ngModel)]="handelInfo.organizationUnitId"></p-calendar> -->
                        <p-multiSelect (onChange)="unitChangeEv($event.value)" [options]="getOrganizationUnitList"
                            name="organizationUnitId" #organizationUnitIdSelect="ngModel"
                            [(ngModel)]="addInfoUi.organizationUnitId" defaultLabel="请选择" required
                            optionLabel="displayName" dataKey="id"></p-multiSelect>
                        <validation-messages [formCtrl]="organizationUnitIdSelect"></validation-messages>

                    </div>
                    <div class="p-field ml ui-g-6" *ngIf="selectedFiles1.nodeLevel===8 ||selectedFiles1.isRelation==1">
                        <span class="input-lable" style="margin-right: 5px;">*装配人员：</span>
                        <p-multiSelect [options]="getOrganizationUnitUsersByIdList" name="userId"
                            #userIdSelect="ngModel" [(ngModel)]="addInfoUi.userId" defaultLabel="请选择" required
                            optionLabel="name" dataKey="id">
                        </p-multiSelect>
                        <validation-messages [formCtrl]="userIdSelect"></validation-messages>

                    </div>
                    <div class="p-field ml ui-g-6" *ngIf="selectedFiles1.nodeLevel===8 ||selectedFiles1.isRelation==1">
                        <span class="input-lable" style="margin-right: 5px;">*标准工时H：</span>
                        <input id="input" type="text" disabled readonly name="performanceHour"
                            #performanceHourInput="ngModel" pInputText [(ngModel)]="addInfoUi.workingHour">


                    </div>
                    <div class="p-field ml ui-g-6" *ngIf="selectedFiles1.nodeLevel===8 ||selectedFiles1.isRelation==1">
                        <span class="input-lable" style="margin-right: 5px;">*绩效工时H：</span>
                        <input id="input" type="text" name="performanceHour" #performanceHourInput="ngModel" pInputText
                            [(ngModel)]="addInfoUi.performanceHour">
                        <validation-messages [formCtrl]="performanceHourInput"></validation-messages>

                    </div>
                    <div class="p-field ml ui-g-12">
                        <span class="input-lable" style="margin-right: 5px;">备注：</span>
                        <textarea style="width: 70%;" rows="5" name="remark" #remarkInput="ngModel"
                            [(ngModel)]="addInfoUi.remark" pInputTextarea autoResize="autoResize"></textarea>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="submit" class="btn btn-primary" [disabled]="!addForm.form.valid"
                        [buttonBusy]="savingAddDia" [busyText]="l('SavingWithThreeDot')"><i class="fa fa-save"></i>
                        <span>提交</span></button>
                </div>
            </form>
        </p-dialog>
        <!-- 履历弹窗 -->
        <p-dialog [style]="{width: '80%', height: '60%',minHeight:'300px',background:'#fff'}" header="操作履历"
            [(visible)]="llVisible" (onHide)="displayclose()" modal="modal" [responsive]="true">
            <p-table [value]="logList" [paginator]="false">
                <ng-template pTemplate="header">
                    <tr>
                        <th style="width: 150px">序号</th>
                        <th style="width: 150px">操作时间</th>
                        <th style="width: 150px">操作类型</th>
                        <th style="width: 150px">操作人</th>
                        <th style="width: 150px">操作详情</th>
                    </tr>
                </ng-template>
                <ng-template pTemplate="body" let-rowIndex="rowIndex" let-car>
                    <tr>
                        <td style="width: 80px">{{rowIndex+1}}</td>
                        <td style="width: 150px">{{car.creationTime | date:'yyyy-MM-dd'}}</td>
                        <td style="width: 150px">{{car.operationTypeDesc}}</td>
                        <td style="width: 150px">{{car.userName}}</td>
                        <td style="width: 150px">{{car.businessTypeDesc}}</td>
                    </tr>
                </ng-template>
            </p-table>


        </p-dialog>
        <!-- 默认排配计划  -->
        <p-dialog [style]="{width: '50%', height: '60%',background:'#fff'}" [(header)]="dialogType"
            [(visible)]="defaultVisible" (onHide)="displayclose()" modal="modal" [responsive]="true">
            <form #defaultForm="ngForm" novalidate class="add-form" autocomplete="off">
                <div class="ui-g form-info">
                    <div *ngIf="dialogType=='默认排配计划'">
                        <div class="p-field ml ui-g-6">
                            <span class="input-lable" style="margin-right: 5px;">计划开始日期：</span>
                            <p-calendar dateFormat="yy-mm-dd" [locale]="chinese" name="startTime"
                                #startTimeSelect="ngModel" [(ngModel)]="defaultInfo.startTime" ></p-calendar>
                            <validation-messages [formCtrl]="startTimeSelect"></validation-messages>

                        </div>
                        <div class="p-field ml ui-g-6">
                            <span class="input-lable" style="margin-right: 5px;">*计划完成日期：</span>
                            <p-calendar dateFormat="yy-mm-dd" [locale]="chinese" name="endTime" #endTimeSelect="ngModel"
                                [(ngModel)]="defaultEndTime" required></p-calendar>
                            <validation-messages [formCtrl]="endTimeSelect"></validation-messages>

                        </div>
                    </div>

                    <div *ngIf="dialogType=='手动排配计划'">
                        <div class="p-field ml ui-g-6">
                            <span class="input-lable" style="margin-right: 5px;">*计划开始日期：</span>
                            <p-calendar  dateFormat="yy-mm-dd" [locale]="chinese" name="startTime"
                                #startTimeSelect="ngModel" [(ngModel)]="startTimeH" required></p-calendar>
                            <validation-messages [formCtrl]="startTimeSelect"></validation-messages>

                        </div>
                        <div class="p-field ml ui-g-6">
                            <span class="input-lable" style="margin-right: 5px;">*计划完成日期：</span>
                            <p-calendar dateFormat="yy-mm-dd" [locale]="chinese" name="endTime" #endTimeSelect="ngModel"
                                [(ngModel)]="endTimeH" required></p-calendar>
                            <validation-messages [formCtrl]="endTimeSelect"></validation-messages>

                        </div>

                        <div class="p-field ml ui-g-6" *ngIf="banZuFlag">
                            <!-- <span *ngIf="impFlag" class="input-lable" style="margin-right: 5px;">*装配班组：</span>
                            <p-multiSelect *ngIf="impFlag" [options]="getOrganizationUnitList" name="organizationUnitIdS"
                                #organizationUnitIdSSelect="ngModel" [(ngModel)]="handelInfo.organizationUnitId"
                                defaultLabel="请选择" required optionLabel="displayName" dataKey="id"></p-multiSelect> -->
                            <span class="input-lable" style="margin-right: 5px;">装配班组：</span>
                            <p-multiSelect [options]="getOrganizationUnitList" name="organizationUnitIdS"
                                [(ngModel)]="handelInfo.organizationUnitId"
                                defaultLabel="请选择" optionLabel="displayName" dataKey="id"></p-multiSelect>
                            <!-- <validation-messages [formCtrl]="organizationUnitIdSSelect"></validation-messages> -->
                        </div>

                        <div class="p-field ml ui-g-6"
                            *ngIf="selectedFiles1.nodeLevel===8 ||selectedFiles1.isRelation==1">
                            <span class="input-lable" style="margin-right: 5px;">*装配班组：</span>
                            <!-- <p-calendar name="startTime" #startTimeSelect="ngModel" [(ngModel)]="handelInfo.organizationUnitId"></p-calendar> -->
                            <p-multiSelect (onChange)="unitChangeEv($event.value)" [options]="getOrganizationUnitList"
                                name="organizationUnitId" #organizationUnitIdSelect="ngModel"
                                [(ngModel)]="handelInfo.organizationUnitId" defaultLabel="请选择" required
                                optionLabel="displayName" dataKey="id"></p-multiSelect>
                            <validation-messages [formCtrl]="organizationUnitIdSelect"></validation-messages>

                        </div>
                        <div class="p-field ml ui-g-6"
                            *ngIf="selectedFiles1.nodeLevel===8 ||selectedFiles1.isRelation==1">
                            <span class="input-lable" style="margin-right: 5px;">装配人员：</span>
                            <p-multiSelect [options]="getOrganizationUnitUsersByIdList" name="userId"
                                #userIdSelect="ngModel" [(ngModel)]="handelInfo.userId" defaultLabel="请选择"
                                [optionLabel]="'name'" dataKey="id">
                            </p-multiSelect>
                            <validation-messages [formCtrl]="userIdSelect"></validation-messages>

                        </div>
                        <div class="p-field ml ui-g-12">
                            <span class="input-lable" style="margin-right: 5px;">备注：</span>
                            <textarea style="width: 70%;" rows="5" name="definition" #definitionInput="ngModel"
                                [(ngModel)]="handelInfo.remark" pInputTextarea autoResize="autoResize"></textarea>
                        </div>
                    </div>

                </div>
                <div class="modal-footer">
                    <button *ngIf="dialogType=='默认排配计划'" type="submit" class="btn btn-primary"
                        [disabled]="!defaultForm.form.valid" [buttonBusy]="savingAddDia"
                        [busyText]="l('SavingWithThreeDot')" (click)="getDefaultArrangement()"><i
                            class="fa fa-save"></i>
                        <span>提交</span></button>
                    <button *ngIf="dialogType=='手动排配计划'" type="submit" class="btn btn-primary"
                        [disabled]="!defaultForm.form.valid" [buttonBusy]="savingAddDia"
                        [busyText]="l('SavingWithThreeDot')" (click)="handManage()"><i class="fa fa-save"></i>
                        <span>提交</span></button>
                </div>
            </form>
        </p-dialog>
        <!-- 缺料 -->
        <p-dialog [style]="{width: '70%', height: '60%',minHeight:'300px',background:'#fff'}" header="缺料表"
            [(visible)]="shortageVisible" (onHide)="displayclose()" modal="modal" [responsive]="true">
            <p-table [style]="{minHeight:'300px'}" [value]="material" [paginator]="false">
                <ng-template pTemplate="header">
                    <tr>
                        <th style="width: 150px">序号</th>
                        <th style="width: 150px">物料图号</th>
                        <th style="width: 150px">物料名称</th>
                        <th style="width: 150px">规格</th>
                        <th style="width: 150px">物料类型</th>
                        <th style="width: 150px">单位</th>
                        <th style="width: 150px">缺料数量</th>
                    </tr>
                </ng-template>
                <ng-template pTemplate="body" let-rowIndex="rowIndex" let-car>
                    <tr>
                        <td style="width: 80px">{{rowIndex+1}}</td>
                        <td style="width: 150px">{{car.code}}</td>
                        <td style="width: 150px">{{car.name}}</td>
                        <td style="width: 150px">{{car.module}}</td>
                        <td style="width: 150px">{{car.materialsNodeName}}</td>
                        <td style="width: 150px">{{car.unit}}</td>
                        <td style="width: 150px">{{car.starvingStock}}</td>
                    </tr>
                </ng-template>
            </p-table>


        </p-dialog>

    </div>
</div>